home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12194 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: HERCULES.CS.UREGINA.CA!wright
  2. From: wright@HERCULES.CS.UREGINA.CA (Shayne G. Wright)
  3. Newsgroups: comp.os.linux.development.apps,comp.lang.c
  4. Subject: Are these assumptions about libraries and headers correct ?
  5. Followup-To: comp.lang.c
  6. Date: 29 Mar 1996 21:13:50 GMT
  7. Organization: University of Regina, Dept. of Computer Science
  8. Sender: Shayne G. Wright
  9. Message-ID: <4jhjqe$l7u@sue.cc.uregina.ca>
  10. NNTP-Posting-Host: hercules.cs.uregina.ca
  11. Summary: Does this type of compilation error indicate a missing header ?
  12.  
  13.     Hi
  14.  
  15.         I am trying to compile procps-0.99 and encounter
  16.     this message :
  17.  
  18. /usr/X11R6/lib/libXt.so: undefined reference to `XkbLookupKeySym'
  19.  
  20.         I guess my assumption is, does the problem have
  21.     anything to do with the header files in /usr/X11R6/include/X11/
  22.     Or specifically a missing Xt/ subdirectory and/or a missing
  23.     XkbLookupKeySym.h file. This is new to me, so please correct 
  24.     me if I am wrong.
  25.  
  26.         Secondly, what is the difference between lib*.a, 
  27.     lib*.sa, and lib*.so.* files ?
  28.  
  29. --- Relevant info ---
  30.         I have encountered undefined reference problems before
  31.     and have had no problem fixing them, but this time I'm not
  32.     sure of the cause. I am doing an ELF compilation and the file 
  33.     /usr/X11R6/lib/libXt.so is a link to libXt.so.6 which is, in
  34.     turn a link to libXt.so.6.0, and ELF library.
  35.  
  36. krusty[procps-0.99a]=2=>>file libXt.*
  37. libXt.a:        current ar archive
  38. libXt.so:       symbolic link to libXt.so.6
  39. libXt.so.6:     symbolic link to libXt.so.6.0
  40. libXt.so.6.0:   ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
  41.  
  42.     Permissions are set (for the parent directories as well) :
  43.  
  44. krusty[procps-0.99a]=3=>>ls -al libXt.*
  45. -rw-r--r--   356750 Feb 28 00:34 libXt.a
  46. lrwxrwxrwx       12 Mar 23 00:21 libXt.so -> libXt.so.6
  47. lrwxrwxrwx       12 Mar 23 00:21 libXt.so.6 -> libXt.so.6.0*
  48. -rwxr-xr-x   308539 Feb 28 00:34 libXt.so.6.0*
  49.     
  50.     And for further verification :
  51.  
  52. krusty[lib]=2=>>nm libXt.so |grep XkbLookupKeySym
  53.          U XkbLookupKeySym
  54. krusty[lib]=3=>>nm libXt.a | grep XkbLookupKeySym 
  55.          U XkbLookupKeySym
  56.  
  57. --- End of relevant scripts ---
  58.  
  59.     I am using GCC-2.7.0 on a system running Linux-1.3.72
  60.  
  61.             As always my thanks
  62.             Take Care 
  63.             Shayne
  64.